package com.brush.pig.domain.req.pig;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.math.BigDecimal;
import java.util.Date;

@Getter
@Setter
@ApiModel(value = "PigTransferAddReq", description = "转舍新增请求对象")
public class PigTransferAddReq {

    /**
     * 猪只类型（数据字典）
     */
    @ApiModelProperty(value = "猪只类型（数据字典）")
    private String type;

    /**
     * 猪只编号
     */
    @ApiModelProperty(value = "猪只编号")
    private String code;

    /**
     * 猪只批次
     */
    @ApiModelProperty(value = "猪只批次")
    private String batch;

    /**
     * 来源栏位ID
     */
    @ApiModelProperty(value = "来源栏位ID")
    private Long sourceDeptId;

    /**
     * 目标栏位ID
     */
    @ApiModelProperty(value = "目标栏位ID")
    private Long targetDeptId;

    /**
     * 数量
     */
    @ApiModelProperty(value = "数量")
    private Integer num;

    /**
     * 重量
     */
    @ApiModelProperty(value = "重量")
    private BigDecimal weight;

    /**
     * 转入时间
     */
    @ApiModelProperty(value = "转入时间")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date time;
}
